#!/usr/bin/python
# -*- coding: UTF-8 -*-

class TestTransform:
    
    def baseTransform(self):
        print int('123')
        # 123
        print int(12.34)
        # 12
        print float('12.34')
        # 12.34
        print str(1.23)
        # '1.23'
        print unicode(100)
        # u'100'
        print bool(1)
        # True
        print bool('')
        # False
        
    def disc2other(self):
        dict = {"name": "Zara", "age": 7, "class ": "First"}
        print type(str(dict)), str(dict)
        # {'age': 7, 'name': 'Zara', 'class ': 'First'}
        print tuple(dict)
        #('age', 'name', 'class ')
        print tuple(dict.values())
        #(7, 'Zara', 'First')
        print list(dict)
        #['age', 'name', 'class ']
        print dict.values()
        #[7, 'Zara', 'First']


    def tupl2other(self):
        tup = (1, 2, 3, 4, 5);
        print list(tup)


if __name__ == '__main__':
    transform = TestTransform()
    # transform.baseTransform()
    # transform.disc2other()
    transform.tupl2other()